using System;
using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using Script.Utilities;
using TMPro;
using UnityEngine;

public class DeadUI : MonoBehaviour
{   
    [SerializeField]
    private TextMeshProUGUI textMeshPro;
    private void Awake()
    {
        textMeshPro = GetComponent<TextMeshProUGUI>();
    }

    private void Start()
    {
        textMeshPro.text = PlayerSetting.deadReson;
        textMeshPro.DOBlendableColor(Color.white, 5);
        // textMeshPro.faceColor = color;
    }

    // private void Update()
    // {
    //     color.a += Time.deltaTime;
    //     textMeshPro.faceColor = color;
    // }
}
